<template>
  <div class="solution-container">
    <!-- 顶部横幅区 -->
    <div class="hero-section">
      <div class="hero-content">
        <h1 class="hero-title">解决方案</h1>
        <p class="hero-subtitle">为不同行业提供专业的物联网解决方案</p>
        <div class="hero-decoration"></div>
      </div>
    </div>

    <!-- 解决方案列表 -->
    <div class="solutions-section">
      <a-row :gutter="[32, 32]">
        <!-- 智能制造解决方案 -->
        <a-col :xs="24" :sm="12" :lg="8">
          <div class="solution-card">
            <div class="card-header">
              <div class="icon-wrapper manufacturing">
                <SettingOutlined class="card-icon" />
              </div>
              <h2 class="card-title">智能制造</h2>
            </div>
            <div class="card-body">
              <p class="card-description">
                通过物联网技术实现设备互联、数据采集与分析，提升生产效率和产品质量
              </p>
              <ul class="feature-list">
                <li><CheckCircleOutlined class="check-icon" /> 设备状态监控</li>
                <li><CheckCircleOutlined class="check-icon" /> 生产数据分析</li>
                <li><CheckCircleOutlined class="check-icon" /> 预测性维护</li>
                <li><CheckCircleOutlined class="check-icon" /> 质量追溯管理</li>
              </ul>
              <a-button type="primary" block size="large" class="solution-btn">
                了解详情
              </a-button>
            </div>
          </div>
        </a-col>

        <!-- 智慧能源解决方案 -->
        <a-col :xs="24" :sm="12" :lg="8">
          <div class="solution-card">
            <div class="card-header">
              <div class="icon-wrapper energy">
                <ThunderboltOutlined class="card-icon" />
              </div>
              <h2 class="card-title">智慧能源</h2>
            </div>
            <div class="card-body">
              <p class="card-description">
                构建智能化能源管理系统，实现能源的精细化管理和优化调度
              </p>
              <ul class="feature-list">
                <li><CheckCircleOutlined class="check-icon" /> 能耗实时监测</li>
                <li><CheckCircleOutlined class="check-icon" /> 能效分析优化</li>
                <li><CheckCircleOutlined class="check-icon" /> 智能调度控制</li>
                <li><CheckCircleOutlined class="check-icon" /> 节能降耗方案</li>
              </ul>
              <a-button type="primary" block size="large" class="solution-btn">
                了解详情
              </a-button>
            </div>
          </div>
        </a-col>

        <!-- 智慧农业解决方案 -->
        <a-col :xs="24" :sm="12" :lg="8">
          <div class="solution-card">
            <div class="card-header">
              <div class="icon-wrapper agriculture">
                <EnvironmentOutlined class="card-icon" />
              </div>
              <h2 class="card-title">智慧农业</h2>
            </div>
            <div class="card-body">
              <p class="card-description">
                利用物联网技术实现农业生产的智能化管理，提高农业生产效率
              </p>
              <ul class="feature-list">
                <li><CheckCircleOutlined class="check-icon" /> 环境监测控制</li>
                <li><CheckCircleOutlined class="check-icon" /> 智能灌溉系统</li>
                <li><CheckCircleOutlined class="check-icon" /> 病虫害预警</li>
                <li><CheckCircleOutlined class="check-icon" /> 溯源管理系统</li>
              </ul>
              <a-button type="primary" block size="large" class="solution-btn">
                了解详情
              </a-button>
            </div>
          </div>
        </a-col>

        <!-- 智慧物流解决方案 -->
        <a-col :xs="24" :sm="12" :lg="8">
          <div class="solution-card">
            <div class="card-header">
              <div class="icon-wrapper logistics">
                <CarOutlined class="card-icon" />
              </div>
              <h2 class="card-title">智慧物流</h2>
            </div>
            <div class="card-body">
              <p class="card-description">
                打造智能化物流管理平台，实现货物追踪、仓储管理和配送优化
              </p>
              <ul class="feature-list">
                <li><CheckCircleOutlined class="check-icon" /> 实时位置追踪</li>
                <li><CheckCircleOutlined class="check-icon" /> 智能仓储管理</li>
                <li><CheckCircleOutlined class="check-icon" /> 路径优化调度</li>
                <li><CheckCircleOutlined class="check-icon" /> 温湿度监控</li>
              </ul>
              <a-button type="primary" block size="large" class="solution-btn">
                了解详情
              </a-button>
            </div>
          </div>
        </a-col>

        <!-- 智慧城市解决方案 -->
        <a-col :xs="24" :sm="12" :lg="8">
          <div class="solution-card">
            <div class="card-header">
              <div class="icon-wrapper city">
                <HomeOutlined class="card-icon" />
              </div>
              <h2 class="card-title">智慧城市</h2>
            </div>
            <div class="card-body">
              <p class="card-description">
                构建城市级物联网平台，提升城市管理和服务的智能化水平
              </p>
              <ul class="feature-list">
                <li><CheckCircleOutlined class="check-icon" /> 智慧路灯管理</li>
                <li><CheckCircleOutlined class="check-icon" /> 环境质量监测</li>
                <li><CheckCircleOutlined class="check-icon" /> 公共安全监控</li>
                <li><CheckCircleOutlined class="check-icon" /> 智能停车系统</li>
              </ul>
              <a-button type="primary" block size="large" class="solution-btn">
                了解详情
              </a-button>
            </div>
          </div>
        </a-col>

        <!-- 数字化诊断解决方案 -->
        <a-col :xs="24" :sm="12" :lg="8">
          <div class="solution-card featured">
            <div class="featured-badge">推荐</div>
            <div class="card-header">
              <div class="icon-wrapper diagnosis">
                <DashboardOutlined class="card-icon" />
              </div>
              <h2 class="card-title">数字化诊断</h2>
            </div>
            <div class="card-body">
              <p class="card-description">
                为企业提供全方位的数字化转型诊断服务，制定个性化解决方案
              </p>
              <ul class="feature-list">
                <li><CheckCircleOutlined class="check-icon" /> 现状评估分析</li>
                <li><CheckCircleOutlined class="check-icon" /> 痛点问题诊断</li>
                <li><CheckCircleOutlined class="check-icon" /> 方案设计规划</li>
                <li><CheckCircleOutlined class="check-icon" /> 实施路径建议</li>
              </ul>
              <a-button type="primary" block size="large" class="solution-btn featured-btn">
                立即咨询
              </a-button>
            </div>
          </div>
        </a-col>
      </a-row>
    </div>

    <!-- 底部行动号召区 -->
    <div class="cta-section">
      <div class="cta-content">
        <h2 class="cta-title">找不到合适的解决方案？</h2>
        <p class="cta-description">我们提供定制化服务，为您量身打造专属解决方案</p>
        <a-space size="large">
          <a-button type="primary" size="large" class="cta-btn">
            <PhoneOutlined /> 联系我们
          </a-button>
          <a-button size="large" class="cta-btn-secondary">
            <FormOutlined /> 提交需求
          </a-button>
        </a-space>
      </div>
    </div>
  </div>
</template>

<script setup>
import {
  SettingOutlined,
  ThunderboltOutlined,
  EnvironmentOutlined,
  CarOutlined,
  HomeOutlined,
  DashboardOutlined,
  CheckCircleOutlined,
  PhoneOutlined,
  FormOutlined
} from '@ant-design/icons-vue';
</script>

<style scoped>
.solution-container {
  min-height: calc(100vh - 200px);
  background: #f0f2f5;
}

/* ==================== 顶部横幅区 ==================== */
.hero-section {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,80 600,40 T1200,60 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom;
  background-size: 100% 100px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.hero-decoration {
  width: 80px;
  height: 4px;
  background: #fff;
  margin: 0 auto;
  border-radius: 2px;
}

/* ==================== 解决方案列表区 ==================== */
.solutions-section {
  max-width: 1400px;
  margin: -40px auto 0;
  padding: 0 20px 60px;
  position: relative;
  z-index: 2;
}

/* ==================== 解决方案卡片 ==================== */
.solution-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.solution-card.featured {
  border: 2px solid #1890ff;
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.card-header {
  padding: 32px 24px 24px;
  text-align: center;
  background: linear-gradient(to bottom, #fafafa 0%, #fff 100%);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.solution-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.icon-wrapper.manufacturing {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

.icon-wrapper.energy {
  background: linear-gradient(135deg, #faad14 0%, #fa8c16 100%);
}

.icon-wrapper.agriculture {
  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
}

.icon-wrapper.logistics {
  background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
}

.icon-wrapper.city {
  background: linear-gradient(135deg, #13c2c2 0%, #08979c 100%);
}

.icon-wrapper.diagnosis {
  background: linear-gradient(135deg, #eb2f96 0%, #c41d7f 100%);
}

.card-icon {
  font-size: 40px;
  color: #fff;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  color: #001529;
  margin: 0;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex: 1;
}

.feature-list li {
  padding: 8px 0;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.check-icon {
  color: #52c41a;
  margin-right: 8px;
  font-size: 16px;
}

.solution-btn {
  border-radius: 8px;
  height: 44px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.solution-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.featured-btn {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  border: none;
}

/* ==================== 底部行动号召区 ==================== */
.cta-section {
  background: linear-gradient(135deg, #001529 0%, #002140 100%);
  padding: 60px 20px;
  margin-top: 40px;
}

.cta-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cta-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.cta-btn {
  height: 48px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.cta-btn-secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.cta-btn-secondary:hover {
  background: #fff;
  color: #001529;
  transform: translateY(-2px);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .solutions-section {
    margin-top: 0;
    padding: 40px 20px;
  }

  .card-title {
    font-size: 20px;
  }

  .icon-wrapper {
    width: 64px;
    height: 64px;
  }

  .card-icon {
    font-size: 32px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-description {
    font-size: 16px;
  }
}
</style>